# -*- coding:utf-8 -*-


# ===================== #
# ** mysql数据库 配置  ** #
# ===================== #
# 数据库类型 MYSQL/SQLITE3
# DATABASE_TYPE = "SQLITE3"

DATABASE_TYPE = "MYSQL"


# 数据库名
DATABASE_NAME = "totest"
DATABASE_USER = "root"
# DATABASE_HOST = "127.0.0.1"
DATABASE_HOST = "81.69.231.152"
# DATABASE_PASSWORD = "xl123456"
DATABASE_PASSWORD = "HKQjQzLAVOUB7RCo2yYIDQ=="
# 数据库端口
DATABASE_PORT = 3306


# redis地址
# REDIS = '127.0.0.1'
REDIS = '124.222.146.157'

# ====================================== #
# ************** 默认配置  ************** #
# ====================================== #
# 只允许访问的ip地址列表
ALLOWED_HOSTS = ['*']
# 允许跨域源
CORS_ORIGIN_ALLOW_ALL = True
# 允许ajax请求携带cookie
CORS_ALLOW_CREDENTIALS = True

# ====================================== #
# ************** 邮件配置  ************** #
# ====================================== #

EMAIL_HOST = 'smtp.qq.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = '1341920323@qq.com'
EMAIL_HOST_PASSWORD = 'chlyknsxbqjryifgic'
